package com.share.mapper.share;

import com.share.domain.share.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author caifan
 * 2018/6/24
 */
@Mapper
public interface RoleMapper {
    /**
     * 根据角色id查询角色
     */
    @Select("select * from role where id = #{id}")
    Role findRoleById(Long id);

}
